Data

These are the countries included in the model:

'Australia (total),   Austria,   Bahrain,   Belgium,   Brazil,   Canada (total),   Cruise Ship (total),   Czechia,   Denmark (total),   Egypt,   Estonia,   Finland,   France (total),   Germany,   Greece,   Hong Kong,   Iceland,   India,   Indonesia,   Iran,   Iraq,   Ireland,   Israel,   Italy,   Japan,   Korea, South,   Kuwait,   Malaysia,   Netherlands (total),   Norway,   Philippines,   Poland,   Portugal,   Qatar,   Romania,   San Marino,   Saudi Arabia,   Singapore,   Slovenia,   Spain,   Sweden,   Switzerland,   Thailand,   US (total),   United Kingdom (total)'

Predicted Cases By Country

Select a country from the drop down list below to toggle the visualization.

Growth Rate Predictions

Text(0.5, 0.98, 'Posterior of daily growth')

Model Diagnostics - Trace Plots

The following trace plots help to assess the convergence of the MCMC sampler. You can safely ignore this if not familiar with MCMC.

About This Analysis

This analysis was done by Thomas Wiecki. Interactive visualizations were created by Hamel Husain.

The model that we are building assumes exponential growth. This is definitely wrong because growth would just continue uninterrupted into the future. However, in the early phase of an epidemic it's a reasonable assumption.1

We assume a negative binomial likelihood as we are dealing with count data. A Poisson could also be used but the negative binomial allows us to also model the variance separately to give more flexibility.

The model is also hierarchical, pooling information from individual countries.


  1. This notebook gets up-to-date data from the "2019 Novel Coronavirus COVID-19 (2019-nCoV) Data Repository by Johns Hopkins CSSE" GitHub repository. This code is provided under the BSD-3 License. Link to original notebook.